import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;
import javax.microedition.lcdui.TextField;
import javax.microedition.midlet.MIDlet;
public class chaongothanhdanh extends MIDlet {
protected Display display;
protected boolean started;
//private Command lenhthoat; // khai bao
//private Alert thongbao;
protected void startApp() {
        if (!started) {
            display = Display.getDisplay(this);
    Form form = new Form("Day La Mot Chuong Trinh Thiep Dien Tu");
    //lenhthoat = new Command("Exit", Command.EXIT, 1); // tao hanh dong thoat
//form.addCommand(lenhthoat); // dua hanh dong vao form
//form.setCommandListener(this); // Listen for Event
form.append("Chao Ngo Thanh Danh");      
form.append("Ban hay dien day du thong tin ben duoi va nhan OK nha !");
form.append(new TextField("Ho va ten:", "", 32, TextField.ANY));
form.append("Ngay sinh:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
form.append("Dia chi:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
form.append("So Dien Thoai:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
form.append("Ten Nguoi Yeu:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
form.append("Ngay Sinh Nguoi Yeu:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
form.append("Dia chi Nguoi Yeu:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
form.append("So Dien Thoai Nguoi Yeu:");
form.append(new TextField(null, null, 32, 	TextField.ANY));   
display.setCurrent(form);      
started = true;
        }
    }
   //public void hienthithongbao()
   //{
   //}
   //public void commandAction(Command c, Displayable s)  {  // thuc thu no
    //if (c == lenhthoat){
      //destroyApp(false);
     // notifyDestroyed();
    //} 
  //}

  protected void pauseApp() {}
  protected void destroyApp(boolean unconditional) {}
}
